home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16625 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: orion.hrz.tu-freiberg.de!wirbel
  2. From: wirbel@orion.hrz.tu-freiberg.de (Frank Wirbeleit)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Arrays in C and c++
  5. Date: 11 Apr 1996 13:52:12 GMT
  6. Organization: BA Freiberg
  7. Distribution: world
  8. Message-ID: <4kj2qc$fem@kermes.hrz.tu-freiberg.de>
  9. References: <4kc929$38k@hermes.acs.unt.edu> <316b3f0c.33230328@news.synapse.net>
  10. NNTP-Posting-Host: orion.hrz.tu-freiberg.de
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Hi,
  14.  
  15. I have created a c++ lib for arrays, please try:
  16.  
  17. ftp : schuetz.exphys.tu-freiberg.de/pub/matrix/matrix_Lib
  18.  
  19. a packed file matrix.exe useful for microsoft and borland compiler
  20. is ther located.
  21.  
  22. Frank
  23.  
  24. wirbel@physik.tu-freiberg.de
  25.  
  26. Phil Lachance (phill@synapse.net) wrote:
  27. : On 8 Apr 1996 23:55:53 GMT, jnr0001@jove.acs.unt.edu (Joseph Neal
  28. : Rake) wrote:
  29.  
  30. : >Is it possible to do 2 dimensional arrays in C or C++?  If so, how?
  31. : >
  32. : You declare 2 or more dimensional arrays like:
  33. : int temp[10][20];
  34. : is a 10 by 20 array of int
  35.  
  36. : you access the elements in the regular way.
  37.  
  38.  
  39. : >This is probably a related question:  How does one do an array of strings 
  40. : >in C or C++, since 1 string is already an array?
  41. : >
  42. : You declare it more or less the same way:
  43. : char temp[10][20];
  44. : where 10 is the number of strings and 20 is the length of the string.
  45.  
  46.  
  47. : _________________________________
  48. : Phil Lachance <phill@synapse.net>
  49.